{include file="header.tpl" }
<img src='{#t_images#}navi.gif' border=0 alt="">{$nav_link}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
<table width="98%" border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td width="170" height="50%" valign="top">{include file="left.tpl"}<!-- left start --></td>
<!-- left end -->
<td valign="top"><div align="center"></div>
{if $code eq "view1" or $code eq "view2"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top><table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td {if $code eq "view1"}class="left_head"{/if}><div align="center">{if $code eq "view1"}未处理订单{else}<a href="index.php?act=order&code=view1">未处理订单</a>{/if}</div></td>
                <td {if $code eq "view2"}class="left_head"{/if}><div align="center">{if $code eq "view2"}已处理订单{else}<a href="index.php?act=order&code=view2">已处理订单</a>{/if}</div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr>
                <td height="113" valign="top"><form action="" method="post" ><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    
					<tr>
                      <td width="124">订单编号</td>
                      <td width="107">货名</td>
                      <td width="127">数量</td>
                      <td width="152">订货日期</td>
                      <td width="93">&nbsp;</td>
                      <td width="116" align="center"> 删 除 </td>
                    </tr>
                    {section name=key loop=$olist}
                    <tr class='f_one'>
                      <td>{$olist[key][0]}</td>
                      <td>{$olist[key][1]}</td>
                      <td>{$olist[key][2]}</td>
                      <td>{$olist[key][3]}</td>
                      
                      <td align="center"><a href="index.php?act=order&code=process&OID={$olist[key][0]}">受 理</a></td>
                      <td><div align="center">
                        <input type="checkbox" name="delo[]" value="{$olist[key][0]}">
                      <br></div></td>
                    </tr> {/section}
                    <tr class='f_one'>
                      <td colspan="6" align='right'>{$plink}</td>
                      </tr>
                   
                </table>
                    <div align="center">
                      <input name="提交" type="submit" value=" 删 除 ">
                      <input name="code" type="hidden" id="code" value="delo">
                      <input name="precode" type="hidden" id="precode" value="{$code}">
                    </div>
                </form></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
{elseif $code eq "uview"}
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr>
                <td height="113" valign="top"><form action="" method="post" >
                    <table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                      <tr>
                        <td width="50">订单编号</td>
                        <td width="128">货 名</td>
                        <td width="124">数 量</td>
                        <td width="140">订货日期</td>
                        <td width="">状 态</td>
                        <td width="91" align="center"> 删 除 </td>
                      </tr>
                      {section name=key loop=$olist}
                      <tr class='f_one'>
                        <td>{$olist[key][0]}</td>
                        <td>{$olist[key][1]}</td>
                        <td>{$olist[key][2]}</td>
                        <td>{$olist[key][3]}</td>
                        <td align="center">{$olist[key][4]}</td>
                        <td><div align="center">{if not $olist[key][5]}
                            <input type="checkbox" name="delo[]" value="{$olist[key][0]}">{else}&nbsp;{/if}
                            <br>
                        </div></td>
                      </tr>
                      {/section}
                      <tr class='f_one'>
                        <td colspan="6" align='right'>{$plink}</td>
                      </tr>
                    </table>
                    <div align="center">
                      <input name="提交" type="submit" id="提交" value=" 删 除 ">
                      <input name="code" type="hidden" id="code3" value="delo">
                      <input name="precode" type="hidden" id="precode" value="{$code}">
                    </div>
                </form></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{elseif $code eq "process"} 
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top><table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td><div align="center"><a href="index.php?act=order&code=view1">未处理订单</a></div></td>
                <td><div align="center"><a href="index.php?act=order&code=view2">已处理订单</a></div></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table><br>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
              <tr>
                <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
                      <tr class='f_one'>
                        <td width="128">货 名：</td>
                        <td width="412">{$order.goods_name}</td>
                      </tr>
                      <tr class='f_one'>
                        <td><p>数 量：</p></td>
                        <td width="412">{$order.quantity} </td>
                      </tr>
                      <tr class='f_one'>
                        <td>订货人：</td>
                        <td width="412">{$order.bname}</td>
                      </tr>
                      <tr class='f_one'>
                        <td>联系电话：</td>
                        <td>{$order.telephone}</td>
                      </tr>
                      <tr class='f_one'>
                        <td>送货地点:</td>
                        <td width="412">{$order.address}</td>
                      </tr>
                      <tr class='f_one'>
                        <td>附加说明: </td>
                        <td width="412">{$order.extra}</td>
                      </tr>
                      <tr class='f_one'>
                        <td>标记受理：</td>
                        <td><input name="finish" type="checkbox" id="finish" value="1" {if $order.process}checked{/if}></td>
                      </tr>
                      <tr>
                        <td><input name="submit" type="submit" class="form" id="submit" value="  提交受理  "></td>
                        <td>
                          <input name="code" type="hidden" id="code" value="doprocess">
                          <input name="OID" type="hidden" id="OID" value="{$order.id}">
</td>
                      </tr>
                    </form>
                </table></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
{/if}<br>
<br></td>
<!-- right end -->
</tr>

</table>
<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
</td></tr></table>
{include file="footer.tpl"}